package com.qtong.baby.test;

import java.util.Date;

import com.qtong.baby.dao.R;
import com.qtong.baby.dao.WeightDao;
import com.qtong.baby.vo.Weight;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;

public class testActivity extends Activity {
	private Context context;
	
     public testActivity(Context context) {
		super();
		this.context = context;
	}

     public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
    	 WeightDao wd=new WeightDao(context);
 		wd.getReadableDatabase();
 		Weight w=new Weight();
 		Date d=new Date();
 		w.setDate(d);
 		w.setValue(20);
 		wd.save(w);		
     }
}
